package PSS;

/*public class Base {
    public void methodA(){
        System.out.println("base中的methoda");
    }
}
 class Dearived extends Base{
    public void methodb(){
        System.out.println("Derived中的methodB");
    }
    public void methodC(){
        methodb();
        methodA();
    }
}*/
/*
public class Base {
    int a;
    int b;
    public void methodA(){
        System.out.println("Base 中的methodaA");
    }
    public void methodB(){
        System.out.println("Base 中的methodaB");

    }
}
 class derived extends Base{
    int a;
    int b;
     public void methodA(){
         System.out.println("Base 中的methodaA");
     }
     public void methodB(){
         System.out.println("Base 中的methodaB");

     }
     public void method(){
         a=100;
         b=101;
         super.a=200;
         super.b=201;
     }
}*/
public class Base {
    public Base(){
        System.out.println("Base");
    }
}
 class Derived extends Base{
    public Derived(){
        System.out.println("Derived");
    }


}
